﻿using GlobalObjects;
using Microsoft.AspNet.SignalR;
using Microsoft.WindowsAzure.ServiceRuntime;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SignalRPushNotification
{
    public class ChatHub : Hub
    {
        public string data { get; set; }

        //public void Send(string name, string message)
        //{
        //    Clients.All.broadcastMessage(name, message, Environment.MachineName, RoleEnvironment.CurrentRoleInstance.Id);
        //}

        public void send()
        {
            Clients.All.broadcast(data);

        }



    }
}